import request from "@/router/axios";

export const getList = (current, size, params) => {
  return request({
    url: "/api/hg-quality/reviewtemplate/list",
    method: "get",
    params: {
      current,
      size,
      ...params
    }
  });
};
//非分页列表数据
export const getListNoPage = (params) => {
  return request({
    url: "/api/hg-quality/reviewtemplate/listNoPage",
    method: "get",
    params: {
      ...params
    }
  });
};
// 评审内容列表
export const getReviewContentList = type => {
  return request({
    url: "/api/hg-quality/reviewtemplate/reviewContentList",
    method: "get",
    params: { type }
  });
};

export const save = data => {
  return request({
    url: "/api/hg-quality/reviewtemplate/save",
    method: "post",
    data
  });
};

export const update = data => {
  return request({
    url: "/api/hg-quality/reviewtemplate/update",
    method: "post",
    data
  });
};

export const getDetail = id => {
  return request({
    url: "/api/hg-quality/reviewtemplate/detail",
    method: "post",
    params: { id }
  });
};

export const remove = ids => {
  return request({
    url: "/api/hg-quality/reviewtemplate/remove",
    method: "post",
    params: { ids }
  });
};
